﻿using System;
using System.ComponentModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TransportMe.Model
{
    public class IncidentSet : INotifyPropertyChanged
    {

        private string incidentID;
        private string message;
        public string type;
        
        public string IncidentID
        {
            get
            {
                return incidentID;
            }
            set
            {
                incidentID = value;
                RaisePropertyChanged("IncidentID");
            }
        }

        public string Type
        {
            get
            {
                return type;
            }
            set
            {
                type = value;
                RaisePropertyChanged("Type");
            }
        }

        public string Message
        {
            get
            {
                return message;
            }
            set
            {
                message = value;
                RaisePropertyChanged("Message");
            }
        }



        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }


        // Create a copy of an IncidentSet to save.
        // If your object is databound, this copy is not databound.
        public IncidentSet GetCopy()
        {
            IncidentSet copy = (IncidentSet)this.MemberwiseClone();
            return copy;
        }

    }
}
